//人气，试用于任何地方
//商品等等
(function() {
	//构造函数
	var _con = function(info) {
		var self = this;
		self._id = db_id_prefix + info._id;
		self.history_list = [];
		console.log("生成一个HOT人气对象：", self);
		db.insert(db_table_name, self);
	};
	//技能
	module.exports = _con;
	_con.prototype = require("./skill");
	//静态方法
	_con.get = function(Id) {
		var result = db.find_by_id(db_table_name, Id);
		return _con.getInstance(result);
	};
	_con.getInstance = function(obj) {
		if (obj) {
			obj.__proto__ = _con.prototype;
		}
		return obj;
	};
	_con.build = function(info_id) {
		var obj = db.find_by_id(db_table_name, db_id_prefix + info_id);
		if (obj) {
			return _con.getInstance(obj)
		} else {
			return new _con({
				_id: info_id
			});
		}
	};
	var child_process = require('child_process');
	var fs = require("fs");
	var db = require("../db/index");
	var config = require("../_include/config");
	var helper = require("../_include/helper");
	var BusCon = require("../bus/_con");
	var GoodsCon = require("../goods/_con");
	var db_table_name = config.dbname.hot;
	var db_id_prefix = config.dbIdPrefix.hot;
}());